﻿using Bot.Domain.Entities;
using Comm100.Framework.Domain.Specifications;
using System;
using System.Collections.Generic;
using System.Text;

namespace Bot.Domain.Specifications
{
    public class ChatbotFilterSpecification : BaseSpecification<Chatbot>
    {
        public ChatbotFilterSpecification(string name)
            : base(i => i.Name == name)
        {

        }
        public ChatbotFilterSpecification(int siteId)
           : base(i => i.SiteId == siteId && i.IsDeleted == false)
        {

        }
        public ChatbotFilterSpecification(int siteId, string name)
           : base(i => i.SiteId == siteId && i.Name == name && i.IsDeleted == false)
        {

        }
    }
}
